<!DOCTYPE html>
<html>
	
	<head>
		<meta charset="UTF-8">
		<title>插件设置</title>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css">
		<link rel="stylesheet" type="text/css" href="css/PlugSetting.css" />
	</head>
	
	<body>
		<div id="backstage" class="layui-layout layui-layout-admin">
			<union-header :header="header"></union-header>
			<uniocn-side :side="side"></uniocn-side>
			<div class="layui-body">
				<!-- 内容主体区域 -->
				<div class="finance-com">
					<div class="finance-title" style="background: #fff;">
						<button id="addNew" class="layui-btn">插件设置</button>
					</div>
					
					<div class="nav">
						<div class="nav_title">插件设置</div>
						<div class="nav_content">
							<div class="nav_content_inner">
								<p>注意：</p>
								<p>1.请直接勾选需要开启的插件。</p>
								<p>2.如果代理在本功能上线前已经开启了插件功能，请管理员先行进入代理设置关闭。 </p>
							</div>
							<div class="nav_content_cheak">
								<form class="layui-form" action="">
									<div class="layui-form-item" pane="">
										<label class="layui-form-label">开启插件</label>
										<div class="layui-input-block">
											<input type="checkbox" name="plug[card]" lay-skin="primary" title="会员卡" checked="">
											<input type="checkbox" name="plug[other]" lay-skin="primary" title="其他">
										</div>
									</div>
									<div class="">
										<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="layui/layui.js"></script>
	<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="js/vue2.5.16.js"></script>
	<script type="text/javascript" src="js/public.js"></script>
	<script type="text/javascript" src="js/data.js"></script>
	<script type="text/javascript">
		
		new Vue({
			el: "#backstage",
			data: {
				header: data.header,
				side: data.side,
			}
		})
		
		layui.use(['form', 'layedit'], function() {
			var form = layui.form,
				layer = layui.layer;
				
			//监听提交
			form.on('submit(demo1)', function(data) {
				console.log(JSON.stringify(data.field));
				layer.msg('提交成功', {
					time: 2000,
					icon: 1
				});
				return false;
			})
		})
		
	</script>
	
</html>